﻿using System.Text.Json;

namespace DDDDemo1;

public class ObjectMapper : IObjectMapper
{
    public TResult MapTo<TResult>(object value)
    {
        return JsonSerializer.Deserialize<TResult>(JsonSerializer.Serialize(value));
    }
}
